package com.opentae.data.mall.examples;

import com.opentae.core.mybatis.SgExample;
import com.opentae.core.mybatis.example.EntityColumn;
import com.opentae.core.mybatis.example.EntityTable;
import com.opentae.core.mybatis.mapperhelper.EntityHelper;
import com.opentae.data.mall.beans.MallTrade;

import java.util.*;
public class MallTradeExample extends SgExample<MallTradeExample.Criteria> {
    public static final Class<MallTrade> beanClass = MallTrade.class;
    public static final EntityTable entityTable = EntityHelper.getEntityTable(beanClass);
    public static EntityColumn reward;
    public static EntityColumn totalMoney;
    public static EntityColumn tradeCode;
    public static EntityColumn payWay;
    public static EntityColumn source;
    public static EntityColumn buyerId;
    public static EntityColumn tid;
    public static EntityColumn rewardId;
    public static EntityColumn payMoney;
    public static EntityColumn createTime;
    public static EntityColumn tradeStatus;
    public static EntityColumn sendStatus;
    public static EntityColumn payStatus;
    static {
        Set<EntityColumn> columns = entityTable.getEntityClassColumns();
        Map<String, EntityColumn> listMap = new HashMap<>();
        for (EntityColumn column : columns) {
            listMap.put(column.getProperty(), column);
        }
        reward = listMap.get("reward");
        totalMoney = listMap.get("totalMoney");
        tradeCode = listMap.get("tradeCode");
        payWay = listMap.get("payWay");
        source = listMap.get("source");
        buyerId = listMap.get("buyerId");
        tid = listMap.get("tid");
        rewardId = listMap.get("rewardId");
        payMoney = listMap.get("payMoney");
        createTime = listMap.get("createTime");
        tradeStatus = listMap.get("tradeStatus");
        sendStatus = listMap.get("sendStatus");
        payStatus = listMap.get("payStatus");
        }

    public MallTradeExample() {
        this.setTableAlias(entityTable.getName());
    }

    @Override
    public EntityTable getEntityTable() {
        return entityTable;
    }

    @Override
    protected MallTradeExample.Criteria createCriteriaInternal() {
        return new MallTradeExample.Criteria(this);
    }

    public static class Criteria extends SgExample.GeneratedCriteria<Criteria> {
        protected Criteria(SgExample example) {
            super(example);
        }

        public MallTradeExample.Criteria andRewardIsNull() {
            return isNull(reward);
        }

        public MallTradeExample.Criteria andRewardIsNotNull() {
            return isNotNull(reward);
        }

        public MallTradeExample.Criteria andRewardEqualTo(String value) {
            return equalTo(reward, value);
        }

        public MallTradeExample.Criteria andRewardNotEqualTo(String value) {
            return notEqualTo(reward, value);
        }

        public MallTradeExample.Criteria andRewardGreaterThan(String value) {
            return greaterThan(reward, value);
        }

        public MallTradeExample.Criteria andRewardGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(reward, value);
        }

        public MallTradeExample.Criteria andRewardLessThan(String value) {
            return lessThan(reward, value);
        }

        public MallTradeExample.Criteria andRewardLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(reward, value);
        }

        public MallTradeExample.Criteria andRewardLike(String value) {
            return like(reward, value);
        }

        public MallTradeExample.Criteria andRewardNotLike(String value) {
            return notLike(reward, value);
        }

        public MallTradeExample.Criteria andRewardIn(List<String> values) {
            return in(reward, values);
        }

        public MallTradeExample.Criteria andRewardNotIn(List<String> values) {
            return notIn(reward, values);
        }

        public MallTradeExample.Criteria andRewardBetween(String value1, String value2) {
            return between(reward, value1, value2);
        }

        public MallTradeExample.Criteria andRewardNotBetween(String value1, String value2) {
            return notBetween(reward, value1, value2);
        }
        public MallTradeExample.Criteria andTotalMoneyIsNull() {
            return isNull(totalMoney);
        }

        public MallTradeExample.Criteria andTotalMoneyIsNotNull() {
            return isNotNull(totalMoney);
        }

        public MallTradeExample.Criteria andTotalMoneyEqualTo(String value) {
            return equalTo(totalMoney, value);
        }

        public MallTradeExample.Criteria andTotalMoneyNotEqualTo(String value) {
            return notEqualTo(totalMoney, value);
        }

        public MallTradeExample.Criteria andTotalMoneyGreaterThan(String value) {
            return greaterThan(totalMoney, value);
        }

        public MallTradeExample.Criteria andTotalMoneyGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(totalMoney, value);
        }

        public MallTradeExample.Criteria andTotalMoneyLessThan(String value) {
            return lessThan(totalMoney, value);
        }

        public MallTradeExample.Criteria andTotalMoneyLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(totalMoney, value);
        }

        public MallTradeExample.Criteria andTotalMoneyLike(String value) {
            return like(totalMoney, value);
        }

        public MallTradeExample.Criteria andTotalMoneyNotLike(String value) {
            return notLike(totalMoney, value);
        }

        public MallTradeExample.Criteria andTotalMoneyIn(List<String> values) {
            return in(totalMoney, values);
        }

        public MallTradeExample.Criteria andTotalMoneyNotIn(List<String> values) {
            return notIn(totalMoney, values);
        }

        public MallTradeExample.Criteria andTotalMoneyBetween(String value1, String value2) {
            return between(totalMoney, value1, value2);
        }

        public MallTradeExample.Criteria andTotalMoneyNotBetween(String value1, String value2) {
            return notBetween(totalMoney, value1, value2);
        }
        public MallTradeExample.Criteria andTradeCodeIsNull() {
            return isNull(tradeCode);
        }

        public MallTradeExample.Criteria andTradeCodeIsNotNull() {
            return isNotNull(tradeCode);
        }

        public MallTradeExample.Criteria andTradeCodeEqualTo(String value) {
            return equalTo(tradeCode, value);
        }

        public MallTradeExample.Criteria andTradeCodeNotEqualTo(String value) {
            return notEqualTo(tradeCode, value);
        }

        public MallTradeExample.Criteria andTradeCodeGreaterThan(String value) {
            return greaterThan(tradeCode, value);
        }

        public MallTradeExample.Criteria andTradeCodeGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(tradeCode, value);
        }

        public MallTradeExample.Criteria andTradeCodeLessThan(String value) {
            return lessThan(tradeCode, value);
        }

        public MallTradeExample.Criteria andTradeCodeLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(tradeCode, value);
        }

        public MallTradeExample.Criteria andTradeCodeLike(String value) {
            return like(tradeCode, value);
        }

        public MallTradeExample.Criteria andTradeCodeNotLike(String value) {
            return notLike(tradeCode, value);
        }

        public MallTradeExample.Criteria andTradeCodeIn(List<String> values) {
            return in(tradeCode, values);
        }

        public MallTradeExample.Criteria andTradeCodeNotIn(List<String> values) {
            return notIn(tradeCode, values);
        }

        public MallTradeExample.Criteria andTradeCodeBetween(String value1, String value2) {
            return between(tradeCode, value1, value2);
        }

        public MallTradeExample.Criteria andTradeCodeNotBetween(String value1, String value2) {
            return notBetween(tradeCode, value1, value2);
        }
        public MallTradeExample.Criteria andPayWayIsNull() {
            return isNull(payWay);
        }

        public MallTradeExample.Criteria andPayWayIsNotNull() {
            return isNotNull(payWay);
        }

        public MallTradeExample.Criteria andPayWayEqualTo(Integer value) {
            return equalTo(payWay, value);
        }

        public MallTradeExample.Criteria andPayWayNotEqualTo(Integer value) {
            return notEqualTo(payWay, value);
        }

        public MallTradeExample.Criteria andPayWayGreaterThan(Integer value) {
            return greaterThan(payWay, value);
        }

        public MallTradeExample.Criteria andPayWayGreaterThanOrEqualTo(Integer value) {
            return greaterThanOrEqualTo(payWay, value);
        }

        public MallTradeExample.Criteria andPayWayLessThan(Integer value) {
            return lessThan(payWay, value);
        }

        public MallTradeExample.Criteria andPayWayLessThanOrEqualTo(Integer value) {
            return lessThanOrEqualTo(payWay, value);
        }

        public MallTradeExample.Criteria andPayWayIn(List<Integer> values) {
            return in(payWay, values);
        }

        public MallTradeExample.Criteria andPayWayNotIn(List<Integer> values) {
            return notIn(payWay, values);
        }

        public MallTradeExample.Criteria andPayWayBetween(Integer value1, Integer value2) {
            return between(payWay, value1, value2);
        }

        public MallTradeExample.Criteria andPayWayNotBetween(Integer value1, Integer value2) {
            return notBetween(payWay, value1, value2);
        }
        public MallTradeExample.Criteria andSourceIsNull() {
            return isNull(source);
        }

        public MallTradeExample.Criteria andSourceIsNotNull() {
            return isNotNull(source);
        }

        public MallTradeExample.Criteria andSourceEqualTo(Integer value) {
            return equalTo(source, value);
        }

        public MallTradeExample.Criteria andSourceNotEqualTo(Integer value) {
            return notEqualTo(source, value);
        }

        public MallTradeExample.Criteria andSourceGreaterThan(Integer value) {
            return greaterThan(source, value);
        }

        public MallTradeExample.Criteria andSourceGreaterThanOrEqualTo(Integer value) {
            return greaterThanOrEqualTo(source, value);
        }

        public MallTradeExample.Criteria andSourceLessThan(Integer value) {
            return lessThan(source, value);
        }

        public MallTradeExample.Criteria andSourceLessThanOrEqualTo(Integer value) {
            return lessThanOrEqualTo(source, value);
        }

        public MallTradeExample.Criteria andSourceIn(List<Integer> values) {
            return in(source, values);
        }

        public MallTradeExample.Criteria andSourceNotIn(List<Integer> values) {
            return notIn(source, values);
        }

        public MallTradeExample.Criteria andSourceBetween(Integer value1, Integer value2) {
            return between(source, value1, value2);
        }

        public MallTradeExample.Criteria andSourceNotBetween(Integer value1, Integer value2) {
            return notBetween(source, value1, value2);
        }
        public MallTradeExample.Criteria andBuyerIdIsNull() {
            return isNull(buyerId);
        }

        public MallTradeExample.Criteria andBuyerIdIsNotNull() {
            return isNotNull(buyerId);
        }

        public MallTradeExample.Criteria andBuyerIdEqualTo(Long value) {
            return equalTo(buyerId, value);
        }

        public MallTradeExample.Criteria andBuyerIdNotEqualTo(Long value) {
            return notEqualTo(buyerId, value);
        }

        public MallTradeExample.Criteria andBuyerIdGreaterThan(Long value) {
            return greaterThan(buyerId, value);
        }

        public MallTradeExample.Criteria andBuyerIdGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(buyerId, value);
        }

        public MallTradeExample.Criteria andBuyerIdLessThan(Long value) {
            return lessThan(buyerId, value);
        }

        public MallTradeExample.Criteria andBuyerIdLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(buyerId, value);
        }

        public MallTradeExample.Criteria andBuyerIdIn(List<Long> values) {
            return in(buyerId, values);
        }

        public MallTradeExample.Criteria andBuyerIdNotIn(List<Long> values) {
            return notIn(buyerId, values);
        }

        public MallTradeExample.Criteria andBuyerIdBetween(Long value1, Long value2) {
            return between(buyerId, value1, value2);
        }

        public MallTradeExample.Criteria andBuyerIdNotBetween(Long value1, Long value2) {
            return notBetween(buyerId, value1, value2);
        }
        public MallTradeExample.Criteria andTidIsNull() {
            return isNull(tid);
        }

        public MallTradeExample.Criteria andTidIsNotNull() {
            return isNotNull(tid);
        }

        public MallTradeExample.Criteria andTidEqualTo(Long value) {
            return equalTo(tid, value);
        }

        public MallTradeExample.Criteria andTidNotEqualTo(Long value) {
            return notEqualTo(tid, value);
        }

        public MallTradeExample.Criteria andTidGreaterThan(Long value) {
            return greaterThan(tid, value);
        }

        public MallTradeExample.Criteria andTidGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(tid, value);
        }

        public MallTradeExample.Criteria andTidLessThan(Long value) {
            return lessThan(tid, value);
        }

        public MallTradeExample.Criteria andTidLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(tid, value);
        }

        public MallTradeExample.Criteria andTidIn(List<Long> values) {
            return in(tid, values);
        }

        public MallTradeExample.Criteria andTidNotIn(List<Long> values) {
            return notIn(tid, values);
        }

        public MallTradeExample.Criteria andTidBetween(Long value1, Long value2) {
            return between(tid, value1, value2);
        }

        public MallTradeExample.Criteria andTidNotBetween(Long value1, Long value2) {
            return notBetween(tid, value1, value2);
        }
        public MallTradeExample.Criteria andRewardIdIsNull() {
            return isNull(rewardId);
        }

        public MallTradeExample.Criteria andRewardIdIsNotNull() {
            return isNotNull(rewardId);
        }

        public MallTradeExample.Criteria andRewardIdEqualTo(Long value) {
            return equalTo(rewardId, value);
        }

        public MallTradeExample.Criteria andRewardIdNotEqualTo(Long value) {
            return notEqualTo(rewardId, value);
        }

        public MallTradeExample.Criteria andRewardIdGreaterThan(Long value) {
            return greaterThan(rewardId, value);
        }

        public MallTradeExample.Criteria andRewardIdGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(rewardId, value);
        }

        public MallTradeExample.Criteria andRewardIdLessThan(Long value) {
            return lessThan(rewardId, value);
        }

        public MallTradeExample.Criteria andRewardIdLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(rewardId, value);
        }

        public MallTradeExample.Criteria andRewardIdIn(List<Long> values) {
            return in(rewardId, values);
        }

        public MallTradeExample.Criteria andRewardIdNotIn(List<Long> values) {
            return notIn(rewardId, values);
        }

        public MallTradeExample.Criteria andRewardIdBetween(Long value1, Long value2) {
            return between(rewardId, value1, value2);
        }

        public MallTradeExample.Criteria andRewardIdNotBetween(Long value1, Long value2) {
            return notBetween(rewardId, value1, value2);
        }
        public MallTradeExample.Criteria andPayMoneyIsNull() {
            return isNull(payMoney);
        }

        public MallTradeExample.Criteria andPayMoneyIsNotNull() {
            return isNotNull(payMoney);
        }

        public MallTradeExample.Criteria andPayMoneyEqualTo(String value) {
            return equalTo(payMoney, value);
        }

        public MallTradeExample.Criteria andPayMoneyNotEqualTo(String value) {
            return notEqualTo(payMoney, value);
        }

        public MallTradeExample.Criteria andPayMoneyGreaterThan(String value) {
            return greaterThan(payMoney, value);
        }

        public MallTradeExample.Criteria andPayMoneyGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(payMoney, value);
        }

        public MallTradeExample.Criteria andPayMoneyLessThan(String value) {
            return lessThan(payMoney, value);
        }

        public MallTradeExample.Criteria andPayMoneyLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(payMoney, value);
        }

        public MallTradeExample.Criteria andPayMoneyLike(String value) {
            return like(payMoney, value);
        }

        public MallTradeExample.Criteria andPayMoneyNotLike(String value) {
            return notLike(payMoney, value);
        }

        public MallTradeExample.Criteria andPayMoneyIn(List<String> values) {
            return in(payMoney, values);
        }

        public MallTradeExample.Criteria andPayMoneyNotIn(List<String> values) {
            return notIn(payMoney, values);
        }

        public MallTradeExample.Criteria andPayMoneyBetween(String value1, String value2) {
            return between(payMoney, value1, value2);
        }

        public MallTradeExample.Criteria andPayMoneyNotBetween(String value1, String value2) {
            return notBetween(payMoney, value1, value2);
        }
        public MallTradeExample.Criteria andCreateTimeIsNull() {
            return isNull(createTime);
        }

        public MallTradeExample.Criteria andCreateTimeIsNotNull() {
            return isNotNull(createTime);
        }

        public MallTradeExample.Criteria andCreateTimeEqualTo(Date value) {
            return equalTo(createTime, value);
        }

        public MallTradeExample.Criteria andCreateTimeNotEqualTo(Date value) {
            return notEqualTo(createTime, value);
        }

        public MallTradeExample.Criteria andCreateTimeGreaterThan(Date value) {
            return greaterThan(createTime, value);
        }

        public MallTradeExample.Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            return greaterThanOrEqualTo(createTime, value);
        }

        public MallTradeExample.Criteria andCreateTimeLessThan(Date value) {
            return lessThan(createTime, value);
        }

        public MallTradeExample.Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            return lessThanOrEqualTo(createTime, value);
        }

        public MallTradeExample.Criteria andCreateTimeIn(List<Date> values) {
            return in(createTime, values);
        }

        public MallTradeExample.Criteria andCreateTimeNotIn(List<Date> values) {
            return notIn(createTime, values);
        }

        public MallTradeExample.Criteria andCreateTimeBetween(Date value1, Date value2) {
            return between(createTime, value1, value2);
        }

        public MallTradeExample.Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            return notBetween(createTime, value1, value2);
        }
        public MallTradeExample.Criteria andTradeStatusIsNull() {
            return isNull(tradeStatus);
        }

        public MallTradeExample.Criteria andTradeStatusIsNotNull() {
            return isNotNull(tradeStatus);
        }

        public MallTradeExample.Criteria andTradeStatusEqualTo(Integer value) {
            return equalTo(tradeStatus, value);
        }

        public MallTradeExample.Criteria andTradeStatusNotEqualTo(Integer value) {
            return notEqualTo(tradeStatus, value);
        }

        public MallTradeExample.Criteria andTradeStatusGreaterThan(Integer value) {
            return greaterThan(tradeStatus, value);
        }

        public MallTradeExample.Criteria andTradeStatusGreaterThanOrEqualTo(Integer value) {
            return greaterThanOrEqualTo(tradeStatus, value);
        }

        public MallTradeExample.Criteria andTradeStatusLessThan(Integer value) {
            return lessThan(tradeStatus, value);
        }

        public MallTradeExample.Criteria andTradeStatusLessThanOrEqualTo(Integer value) {
            return lessThanOrEqualTo(tradeStatus, value);
        }

        public MallTradeExample.Criteria andTradeStatusIn(List<Integer> values) {
            return in(tradeStatus, values);
        }

        public MallTradeExample.Criteria andTradeStatusNotIn(List<Integer> values) {
            return notIn(tradeStatus, values);
        }

        public MallTradeExample.Criteria andTradeStatusBetween(Integer value1, Integer value2) {
            return between(tradeStatus, value1, value2);
        }

        public MallTradeExample.Criteria andTradeStatusNotBetween(Integer value1, Integer value2) {
            return notBetween(tradeStatus, value1, value2);
        }
        public MallTradeExample.Criteria andSendStatusIsNull() {
            return isNull(sendStatus);
        }

        public MallTradeExample.Criteria andSendStatusIsNotNull() {
            return isNotNull(sendStatus);
        }

        public MallTradeExample.Criteria andSendStatusEqualTo(Integer value) {
            return equalTo(sendStatus, value);
        }

        public MallTradeExample.Criteria andSendStatusNotEqualTo(Integer value) {
            return notEqualTo(sendStatus, value);
        }

        public MallTradeExample.Criteria andSendStatusGreaterThan(Integer value) {
            return greaterThan(sendStatus, value);
        }

        public MallTradeExample.Criteria andSendStatusGreaterThanOrEqualTo(Integer value) {
            return greaterThanOrEqualTo(sendStatus, value);
        }

        public MallTradeExample.Criteria andSendStatusLessThan(Integer value) {
            return lessThan(sendStatus, value);
        }

        public MallTradeExample.Criteria andSendStatusLessThanOrEqualTo(Integer value) {
            return lessThanOrEqualTo(sendStatus, value);
        }

        public MallTradeExample.Criteria andSendStatusIn(List<Integer> values) {
            return in(sendStatus, values);
        }

        public MallTradeExample.Criteria andSendStatusNotIn(List<Integer> values) {
            return notIn(sendStatus, values);
        }

        public MallTradeExample.Criteria andSendStatusBetween(Integer value1, Integer value2) {
            return between(sendStatus, value1, value2);
        }

        public MallTradeExample.Criteria andSendStatusNotBetween(Integer value1, Integer value2) {
            return notBetween(sendStatus, value1, value2);
        }
        public MallTradeExample.Criteria andPayStatusIsNull() {
            return isNull(payStatus);
        }

        public MallTradeExample.Criteria andPayStatusIsNotNull() {
            return isNotNull(payStatus);
        }

        public MallTradeExample.Criteria andPayStatusEqualTo(Integer value) {
            return equalTo(payStatus, value);
        }

        public MallTradeExample.Criteria andPayStatusNotEqualTo(Integer value) {
            return notEqualTo(payStatus, value);
        }

        public MallTradeExample.Criteria andPayStatusGreaterThan(Integer value) {
            return greaterThan(payStatus, value);
        }

        public MallTradeExample.Criteria andPayStatusGreaterThanOrEqualTo(Integer value) {
            return greaterThanOrEqualTo(payStatus, value);
        }

        public MallTradeExample.Criteria andPayStatusLessThan(Integer value) {
            return lessThan(payStatus, value);
        }

        public MallTradeExample.Criteria andPayStatusLessThanOrEqualTo(Integer value) {
            return lessThanOrEqualTo(payStatus, value);
        }

        public MallTradeExample.Criteria andPayStatusIn(List<Integer> values) {
            return in(payStatus, values);
        }

        public MallTradeExample.Criteria andPayStatusNotIn(List<Integer> values) {
            return notIn(payStatus, values);
        }

        public MallTradeExample.Criteria andPayStatusBetween(Integer value1, Integer value2) {
            return between(payStatus, value1, value2);
        }

        public MallTradeExample.Criteria andPayStatusNotBetween(Integer value1, Integer value2) {
            return notBetween(payStatus, value1, value2);
        }
    }
}